import request from "../request"
export default {
    // 获取用户购物车信息
    getShoppingCart(data = {}) {
        return request({
            url: "/api/user/shoppingCart/getShoppingCart",
            method: "POST",
            data: data
        })
    },
    // 商品加入购物车
    addShoppingCart(data = {}) {
        return request({
            url: "/api/user/shoppingCart/addShoppingCart",
            method: "POST",
            data: data
        })
    },
    // 向后端发起更新购物车的数据库信息请求
    updateShoppingCart(data = {}) {
        return request({
            url: "/api/user/shoppingCart/updateShoppingCart",
            method: "POST",
            data: data
        })
    },
    // 向后端发起删除购物车的数据库信息请求
    deleteShoppingCart(data = {}) {
        return request({
            url: "/api/user/shoppingCart/deleteShoppingCart",
            method: "POST",
            data: data
        })
    },
}